package com.esrc.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.esrc.web.entity.Region;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @description:
 * @author: lx
 * @time: 2025/6/16
 */
@Mapper
public interface RegionMapper extends BaseMapper<Region> {
    @Select("SELECT * FROM region ORDER BY parent_id")
    List<Region> selectAllOrdered();
}
